#ifndef GAMESETUP_H
#define GAMESETUP_H

#include <QWidget>
#include <QList>

class QSpinBox;
class QLabel;
class PlayerSetup;
class QGridLayout;
class QPushButton;
class Player;
class GameManager;

class GameSetup : public QWidget
{
	Q_OBJECT
	
	public:
		GameSetup(GameManager *game, QWidget *parent = 0);
		
	signals:
		void setupDone();
		
	private slots:
		void nPlayersChanged(int value);
		void setupPlayers();
		
	private:
		void setupGui();
		
		GameManager *m_game;
		QSpinBox *m_nPlayersSpinBox;
		QLabel *m_nPlayersLabel;
		QList<PlayerSetup*> m_players;
		QGridLayout *m_playersLayout;
		QPushButton *m_startButton;
};

#endif